<?php /* Smarty version Smarty-3.1.12, created on 2013-04-24 18:47:18
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/match/middleArea.tpl" */ ?>
<?php /*%%SmartyHeaderCode:108397149551080d8241da48-73260106%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd0bc93626544e2dc1db14ba5ad584eee9a454c12' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/match/middleArea.tpl',
      1 => 1366822036,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '108397149551080d8241da48-73260106',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_51080d8242c158_56734812',
  'variables' => 
  array (
    'matchData' => 0,
    'matchID' => 0,
    'data' => 0,
    'matchSubmitted' => 0,
    'playerSubmitted' => 0,
    'teamWonID' => 0,
    'besucher' => 0,
    'canceled' => 0,
    'matchAlreadyCanceled' => 0,
    'disabled' => 0,
    'onclick' => 0,
    'html' => 0,
    'hideCancelButton' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51080d8242c158_56734812')) {function content_51080d8242c158_56734812($_smarty_tpl) {?><div class="row-fluid">
	<div class="span4">
		<div><strong>Mode</strong></div>
		<div><div class="badge badge-info t" title="<?php echo $_smarty_tpl->tpl_vars['matchData']->value['MatchMode'];?>
 "><?php echo $_smarty_tpl->tpl_vars['matchData']->value['Shortcut'];?>
</div></div>
	</div>
	<div class="span4">
		<div><strong>Region</strong></div>
		<div><div class="badge badge-important t" title="<?php echo $_smarty_tpl->tpl_vars['matchData']->value['Region'];?>
"><?php echo $_smarty_tpl->tpl_vars['matchData']->value['RegionShortcut'];?>
</div></div>
	</div>
	<div class="span4">
		<div><strong>MatchID</strong></div>
		<div><div class="badge t" title="MatchID"><?php echo $_smarty_tpl->tpl_vars['matchID']->value;?>
</div></div>
	</div>
</div>
<br>
<!-- <h5>MatchID: <?php echo $_smarty_tpl->tpl_vars['matchID']->value;?>
</h5> -->

<!-- <h4><?php echo $_smarty_tpl->tpl_vars['matchData']->value['MatchMode'];?>
 (<?php echo $_smarty_tpl->tpl_vars['matchData']->value['Shortcut'];?>
)</h4> -->

<p>
	<span class="label t" title="average Elo of Team Radiant"><?php echo $_smarty_tpl->tpl_vars['data']->value['matchdetails']['ave_rank_team1'];?>
</span>
	<span style="font-size: 22px;"><strong>VS</strong></span> <span
		class="label t" title="average Elo of Team Dire"><?php echo $_smarty_tpl->tpl_vars['data']->value['matchdetails']['ave_rank_team2'];?>
</span>
</p>
<br>
<!-- <div class="btn-group"> -->
<!-- 	<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> -->
<!-- 		Vote <span class="caret"></span> -->
<!-- 	</a> -->
<!-- 	<ul class="dropdown-menu"> -->
<!-- 		<li><a href="#" target="_blank">Rematch (unbalanced)</a></li> -->
<!-- 		<li><a href="#" target="_blank">Cancel Match</a></li> -->
<!-- 	</ul> -->
<!-- </div> -->

<?php if ($_COOKIE['matchFoundResultSubmitted']==$_smarty_tpl->tpl_vars['matchID']->value&&!$_smarty_tpl->tpl_vars['matchSubmitted']->value&&$_smarty_tpl->tpl_vars['playerSubmitted']->value){?> 
	<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("Result submitted", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);?>
	<?php $_smarty_tpl->tpl_vars["hideCancelButton"] = new Smarty_variable("hide", null, 0);?> 
<?php }elseif($_smarty_tpl->tpl_vars['matchSubmitted']->value&&$_smarty_tpl->tpl_vars['playerSubmitted']->value){?>
	<?php if ($_smarty_tpl->tpl_vars['teamWonID']->value==1){?> 
		<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled btn-success", null, 0);?> 
		<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("The Radiant Team won", null, 0);?> 
 	<?php }else{ ?>
		<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled btn-danger", null, 0);?> 
		<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("The Dire Team won", null, 0);?> 
	<?php }?> 

	<?php $_smarty_tpl->tpl_vars["hideCancelButton"] = new Smarty_variable("hide", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);?> 
<?php }elseif($_smarty_tpl->tpl_vars['matchSubmitted']->value&&!$_smarty_tpl->tpl_vars['playerSubmitted']->value){?> 
	<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("btn-primary", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("Submit result!", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick='checkForStrangeSubmissions()'", null, 0);?> 
<?php }elseif($_smarty_tpl->tpl_vars['matchSubmitted']->value&&$_smarty_tpl->tpl_vars['besucher']->value==true){?> 
	<?php if ($_smarty_tpl->tpl_vars['teamWonID']->value==1){?> 
			<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled btn-success", null, 0);?> 
			<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("The Radiant Team won", null, 0);?> 
	 	<?php }else{ ?>
			<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled btn-danger", null, 0);?> 
			<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("The Dire Team won", null, 0);?> 
		<?php }?> 
	
		<?php $_smarty_tpl->tpl_vars["hideCancelButton"] = new Smarty_variable("hide", null, 0);?> 
		<?php $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);?> 
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("btn-primary", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["html"] = new Smarty_variable("Submit result!", null, 0);?> 
	<?php $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick='checkForStrangeSubmissions()'", null, 0);?> 
<?php }?>

<p id="middleAreaButtonArea"><?php if ($_smarty_tpl->tpl_vars['canceled']->value==true){?>
<div class="alert-info">you voted for canceling the Match!</div>
<?php }elseif($_smarty_tpl->tpl_vars['matchAlreadyCanceled']->value&&$_smarty_tpl->tpl_vars['playerSubmitted']->value){?>
<div class="alert-info">Match was canceled!</div>
<?php }else{ ?>

<button class="btn btn-large <?php echo $_smarty_tpl->tpl_vars['disabled']->value;?>
" <?php echo $_smarty_tpl->tpl_vars['onclick']->value;?>
 type="button"
	id="matchSubmitresultButton"><?php echo $_smarty_tpl->tpl_vars['html']->value;?>
</button>

<a href="#myModalCancelMatch" id="cancelMatchButton"
	class="btn <?php echo $_smarty_tpl->tpl_vars['hideCancelButton']->value;?>
" role="button" data-toggle="modal"
	style="margin-top: 10px;">Cancel Match</a>

<?php }?>

</p><?php }} ?>